package com.zw.yzk.kabu.mapper;

import com.zw.yzk.kabu.data.network.entity.TickerOrderDetailsEntity;
import com.zw.yzk.kabu.model.TicketOrderDetailsModel;

import javax.inject.Inject;

/**
 * Created by zhanwei on 2017/3/10.
 */

public class TicketOrderDetailsMapper {

    @Inject
    public TicketOrderDetailsMapper() {
    }

    public TicketOrderDetailsModel transfer(TickerOrderDetailsEntity entity) {
        TicketOrderDetailsModel model = new TicketOrderDetailsModel();
        model.setTicketType(entity.result.ticketType);
        model.setCreateTime(entity.result.createTime);
        model.setId(entity.result.id);
        model.setCheckCode(entity.result.checkCode);
        model.setQrCodeUrl(entity.result.qrCodeUrl);
        model.setExhibitionStartTime(entity.result.exhibitionStartTime);
        model.setExhibitionAddress(entity.result.exhibitionAddress);
        model.setPhone(entity.result.phone);
        model.setSerialNumber(entity.result.serialNumber);
        model.setTotalPrice(entity.result.totalPrice);
        model.setPrice(entity.result.price);
        model.setExhibitionName(entity.result.exhibitionName);
        model.setCount(entity.result.count);
        model.setImage(entity.result.image);
        model.setExhibitionEndTime(entity.result.exhibitionEndTime);

        return model;
    }
}
